package priv.pattern.templatemethod.abs.impl;

import priv.pattern.templatemethod.abs.RefreshBeverage;

/*
 * 作者：m鹏h
 * 时间；2024/8/6 22:24
 * 描述：咖啡
 **/
public class CofferImpl extends RefreshBeverage {


 @Override
 protected void brew() {
  System.out.println("用沸水冲泡咖啡");
 }

 @Override
 protected void addCondiments() {
  System.out.println("加糖和牛奶");
 }

 // 是否需要添加调料
 @Override
 protected boolean isCustomerWantsCondiments() {
  return super.isCustomerWantsCondiments();
 }
}
